{"ast":null,"code":"import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\n\n// [times, realValue]\nvar Entity = /*#__PURE__*/function () {\n  function Entity() {\n    _classCallCheck(this, Entity);\n    _defineProperty(this, \"cache\", new Map());\n  }\n  _createClass(Entity, [{\n    key: \"get\",\n    value: function get(keys) {\n      return this.cache.get(keys.join('%')) || null;\n    }\n  }, {\n    key: \"update\",\n    value: function update(keys, valueFn) {\n      var path = keys.join('%');\n      var prevValue = this.cache.get(path);\n      var nextValue = valueFn(prevValue);\n      if (nextValue === null) {\n        this.cache.delete(path);\n      } else {\n        this.cache.set(path, nextValue);\n      }\n    }\n  }]);\n  return Entity;\n}();\nexport default Entity;","map":{"version":3,"names":["_classCallCheck","_createClass","_defineProperty","Entity","Map","key","value","get","keys","cache","join","update","valueFn","path","prevValue","nextValue","delete","set"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@ant-design/cssinjs/es/Cache.js"],"sourcesContent":["import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\n\n// [times, realValue]\nvar Entity = /*#__PURE__*/function () {\n  function Entity() {\n    _classCallCheck(this, Entity);\n\n    _defineProperty(this, \"cache\", new Map());\n  }\n\n  _createClass(Entity, [{\n    key: \"get\",\n    value: function get(keys) {\n      return this.cache.get(keys.join('%')) || null;\n    }\n  }, {\n    key: \"update\",\n    value: function update(keys, valueFn) {\n      var path = keys.join('%');\n      var prevValue = this.cache.get(path);\n      var nextValue = valueFn(prevValue);\n\n      if (nextValue === null) {\n        this.cache.delete(path);\n      } else {\n        this.cache.set(path, nextValue);\n      }\n    }\n  }]);\n\n  return Entity;\n}();\n\nexport default Entity;"],"mappings":"AAAA,OAAOA,eAAe,MAAM,2CAA2C;AACvE,OAAOC,YAAY,MAAM,wCAAwC;AACjE,OAAOC,eAAe,MAAM,2CAA2C;;AAEvE;AACA,IAAIC,MAAM,GAAG,aAAa,YAAY;EACpC,SAASA,MAAM,GAAG;IAChBH,eAAe,CAAC,IAAI,EAAEG,MAAM,CAAC;IAE7BD,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,IAAIE,GAAG,EAAE,CAAC;EAC3C;EAEAH,YAAY,CAACE,MAAM,EAAE,CAAC;IACpBE,GAAG,EAAE,KAAK;IACVC,KAAK,EAAE,SAASC,GAAG,CAACC,IAAI,EAAE;MACxB,OAAO,IAAI,CAACC,KAAK,CAACF,GAAG,CAACC,IAAI,CAACE,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI;IAC/C;EACF,CAAC,EAAE;IACDL,GAAG,EAAE,QAAQ;IACbC,KAAK,EAAE,SAASK,MAAM,CAACH,IAAI,EAAEI,OAAO,EAAE;MACpC,IAAIC,IAAI,GAAGL,IAAI,CAACE,IAAI,CAAC,GAAG,CAAC;MACzB,IAAII,SAAS,GAAG,IAAI,CAACL,KAAK,CAACF,GAAG,CAACM,IAAI,CAAC;MACpC,IAAIE,SAAS,GAAGH,OAAO,CAACE,SAAS,CAAC;MAElC,IAAIC,SAAS,KAAK,IAAI,EAAE;QACtB,IAAI,CAACN,KAAK,CAACO,MAAM,CAACH,IAAI,CAAC;MACzB,CAAC,MAAM;QACL,IAAI,CAACJ,KAAK,CAACQ,GAAG,CAACJ,IAAI,EAAEE,SAAS,CAAC;MACjC;IACF;EACF,CAAC,CAAC,CAAC;EAEH,OAAOZ,MAAM;AACf,CAAC,EAAE;AAEH,eAAeA,MAAM"},"metadata":{},"sourceType":"module"}